﻿using System.Windows.Forms;
namespace Reversi
{
	public class ErrorHandler
	{
		public static void ShowError(string errorString, string caption)
		{
			MessageBox.Show(errorString, caption, MessageBoxButtons.OK, MessageBoxIcon.Error);
		}

		public static void ShowInformation(string infoString, string caption)
		{
			MessageBox.Show(infoString, caption, MessageBoxButtons.OK, MessageBoxIcon.Information);
		}

		public static DialogResult ShowQuestion(string questionString, string caption)
		{
			return MessageBox.Show(questionString, caption, MessageBoxButtons.YesNo, MessageBoxIcon.Question);
		}
	}
}
